package cn.itsource.product.mapper;

import cn.itsource.basic.mysuper.MyBaseMapper;
import cn.itsource.product.domain.Product;
import cn.itsource.product.domain.TProductDetail;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface TProductDetailMapper extends MyBaseMapper<TProductDetail> {
    //这个方法就是获取当前实体类的泛型大的class
    default Class<TProductDetail> getTClass(){
        return TProductDetail.class;
    };

    @Select("select * FROM t_product_detail WHERE product_id = #{id}")
    TProductDetail findById(Long id);

}
